<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

function lang($var, $arg1 = NULL, $arg2 = NULL) {
    $CI = & get_instance();
    return sprintf($CI->lang->line($var), $arg1, $arg2);
}

function get_lang($label = NULL) {
    $CI = & get_instance();
    $CI->load->model('user_panel/language');
    $language = new Language();
    $language->where('language_label', $CI->config->config['language'])->get();
    if($label == NULL)
        return $language->language_id;
    else
        return $language->language_label;
}

/* End of file MY_language_helper.php */
/* Location: ./system/application/helpers/MY_language_helper.php */